Specifies that a program line is a comment.
プログラム行中のコメント文を指定します。
Rem Text
Rem Text
Text: Any text that serves as a comment.
Text: コメント文として記入する任意のテキスト
![]() | You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment.
コメント行の指定は、Rem キーワードの代わりに単一引用符 (シングルクォート) 記号を使うこともできます。このキーワードは、通常のプログラムコードの右側に置くこともでき、それ以降の記述はコメント文と見なされます。 |
![]() | You can use a space followed by the underline character _ as the last two characters of a line to continue the logical line on the next line. To continue comment lines, you must enter "Option Compatible" in the same Basic module.
空白に続くアンダーライン文字 _ を行の最後の 2 文字として使用して、次の行で論理行を継続することができます。 コメント行を継続するには、同じ Basic モジュールに "Option Compatible" と入力する必要があります。 |
Sub ExampleMid
Sub ExampleMid
DIM sVar As String
DIM sVar As String
sVar = "Las Vegas"
sVar = "Las Vegas"
Print Mid(sVar,3,5) REM Returns "s Veg"
Print Mid(sVar,3,5) REM 結果の文字列は「s Veg」
REM Nothing occurs here
REM ここでは何の処理も行われません
end sub
end sub